Method: Sequel::Dataset#<<

Defined in:
lib/sequel/dataset/actions.rb

#<<(arg) ⇒ Object

Inserts the given argument into the database. Returns self so it can be used safely when chaining:

DB[:items] << {id: 0, name: 'Zero'} << DB[:old_items].select(:id, name)


29
30
31
32
# File 'lib/sequel/dataset/actions.rb', line 29

def <<(arg)
  insert(arg)
  self
end